{{ template "base" . }}

{{ define "title" }}管理员登录{{ end }}

{{ define "content" }}
    <div class="login-form">
        <h2>管理员登录</h2>
        
        {{ if .error }}
        <div class="error">{{ .error }}</div>
        {{ end }}
        
        <form method="POST" action="/admin/login">
            <div class="form-group">
                <label for="username">用户名</label>
                <input type="text" id="username" name="username" required>
            </div>
            
            <div class="form-group">
                <label for="password">密码</label>
                <input type="password" id="password" name="password" required>
            </div>
            
            <button type="submit" class="btn">登录</button>
        </form>
    </div>
{{ end }}